package org.example.myleet.p622;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        MyCircularQueue queue = new MyCircularQueue(3);
        Assert.isTrue(queue.enQueue(1));
        Assert.isTrue(queue.enQueue(2));
        Assert.isTrue(queue.enQueue(3));
        Assert.isTrue(!queue.enQueue(4));
        Assert.isTrue(3 == queue.Rear());
        Assert.isTrue(queue.isFull());
        Assert.isTrue(queue.deQueue());
        Assert.isTrue(queue.enQueue(4));
        Assert.isTrue(4 == queue.Rear());
    }
}
